home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / misc / xmgr_docs.lha / xmgr_docs / examples / dotest < prev    next >
Encoding:
Text File  |  1993-05-02  |  3.0 KB  |  145 lines

  1. #!/bin/csh
  2. # demos for ACE/gr
  3. #
  4. setenv BCflag  ' '
  5. #setenv BCflag  '-bc'
  6.  
  7. #
  8. # define the version xvgr = XView, xmgr = Motif
  9. #
  10. #setenv ACEGR ./xvgr
  11. setenv ACEGR ./xmgr
  12.  
  13. echo $BCflag
  14.  
  15. # command line parameters
  16. $ACEGR -usage
  17. sleep 3
  18. # XView command line parameters
  19. $ACEGR -help
  20. sleep 3
  21. #
  22. # explain the row of single character buttons and a few other things
  23. $ACEGR -p explain.par $BCflag
  24. #
  25. # display the various axes available
  26. $ACEGR -p axes.par $BCflag
  27. #
  28. # display the symbols and line styles
  29. $ACEGR symslines.dat $BCflag
  30. #
  31. # display more symbols
  32. $ACEGR moresyms.dat $BCflag
  33. #
  34. # display various fill styles
  35. $ACEGR fills.dat $BCflag
  36. #
  37. # some graph stuff and ticks
  38. $ACEGR -p graphs.par $BCflag
  39. #
  40. # some graph stuff and ticks
  41. $ACEGR -p props1.par $BCflag
  42. #
  43. # demonstration of many graphs
  44. $ACEGR -maxgraph 36 manygraphs.d $BCflag
  45. #
  46. # some graph stuff and ticks
  47. $ACEGR brw.dat -p regions.par $BCflag
  48. #
  49. # test of a graph inset
  50. $ACEGR tinset.d $BCflag
  51. #
  52. # some time and date formats
  53. $ACEGR times.dat $BCflag
  54. #
  55. # some more tick label formats
  56. $ACEGR -p tforms.par $BCflag
  57. #
  58. # some more tick label formats
  59. $ACEGR au.d $BCflag
  60. #
  61. # display fonts and font mappings
  62. $ACEGR -p tfonts.par $BCflag
  63. #
  64. # example of world stack
  65. $ACEGR tstack.dat $BCflag
  66. #
  67. # a graph with a parameter file
  68. $ACEGR -p test1.par -a xy test.dat $BCflag
  69. #
  70. # a graph with a parameter file in reverse video
  71. $ACEGR -rvideo -p test1.par -a xy test.dat $BCflag
  72. #
  73. $ACEGR test2.d $BCflag
  74. #
  75. # multiple graphs with a parameter file
  76. $ACEGR mlo.dat -graph 1 brw.dat -p co2.par $BCflag
  77. #
  78. # multiple graphs created with arrange feature
  79. # $ACEGR co2.all0.dat -graph 1 1.dat -graph 2 2.dat -graph 3 3.dat -graph 4 4.dat -p co2-3.par $BCflag
  80. $ACEGR co2.all $BCflag
  81. #
  82. # a graph with alternate axes
  83. $ACEGR -p altaxis.par test.dat -a xy $BCflag
  84. #
  85. # a graph with error bars
  86. $ACEGR terr.d $BCflag
  87. #
  88. # another graph with error bars
  89. $ACEGR terr2.d $BCflag
  90. #
  91. # a graph with XY RADIUS format
  92. $ACEGR txyr.dat $BCflag
  93. #
  94. # a graph with hilo data
  95. $ACEGR hilo.dat $BCflag
  96. #
  97. # log plots
  98. $ACEGR -p logtest.par log.d -graph 1 log.d $BCflag
  99. #
  100. # more log plots
  101. $ACEGR tlog.demo $BCflag
  102. #
  103. # non-linear curve fitting
  104. $ACEGR logistic.d $BCflag
  105. #
  106. # bar charts
  107. #
  108. # display all types of bar graphs
  109. $ACEGR bars.d $BCflag
  110. #
  111. # a bar graph demonstrating specified ticks and tick labels
  112. $ACEGR bar.d $BCflag
  113. #
  114. # a bar graph demonstrating specified ticks and tick labels
  115. $ACEGR bar2.d $BCflag
  116. #
  117. # a bar graph demonstrating patterns
  118. $ACEGR tbar3.dat $BCflag
  119. #
  120. # a stacked bar graph
  121. $ACEGR stackedb.d $BCflag
  122. #
  123. # a slideshow demo
  124. $ACEGR -pipe $BCflag < slideshow.d
  125. #
  126. # need a program
  127. # modified from previous versions, a thank you goes to Bruce Barnett
  128. # this modification allows others without write permission
  129. # to run the demos.
  130. #
  131. echo ""
  132. if ( ! -f tmc ) then
  133.       echo ""
  134.       echo "Compiling a short program to test the -pipe option"
  135.       echo "Executing 'cc tmc.c -o tmc -lm'"
  136.       cc tmc.c -o tmc -lm
  137.       echo "Done compilation"
  138.       echo ""
  139. endif
  140.  
  141. #
  142. # a graph with the -pipe option
  143. echo "Testing -pipe option, executing './tmc | $ACEGR -pipe' "
  144. ./tmc | $ACEGR -pipe $BCflag
  145.